package com.luaj.elasticsearch.service;

import com.luaj.elasticsearch.pojo.Shop;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author 卢安杰
 * @date 2020-11-20 20:06
 */
public interface ShopService {
    int countAllShop();

    void create(Shop shopModel);

    List<Shop> selectAll();

    List<Shop> recommend(BigDecimal longitude, BigDecimal latitude);

    List<Shop> search(BigDecimal longitude, BigDecimal latitude, String keyword, Integer orderby, Integer categoryId, String tags);

    List<Map<String, Object>> searchGroupByTags(String keyword, Integer categoryId, String tags);

}
